package com.xmu.makerspace.dao;

import com.xmu.makerspace.domain.Student;
import com.xmu.makerspace.model.seat.SimpleMemberOfSeat;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

import java.util.List;

/**
 * Created by status200 on 2017/9/1.
 */
public interface StudentRepository extends CrudRepository<Student,String> {

    int countByAttendanceNumber(int attendanceNumber);

    int countByStudentIdAndAttendanceNumberNotNull(String studentId);
}
